home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 March / CHIP Mart 1997.iso / SurfCam / SURFCAM.Z / MYCENTR.M4 < prev    next >
Encoding:
Text File  |  1996-04-01  |  4.1 KB  |  142 lines

  1. name Mycenter 4 axis
  2.  
  3. % 00
  4. / 00
  5. O >4
  6. N >4
  7. G >2
  8. g >2 G
  9. H >2
  10. D >2
  11. X ->3.>4
  12. Y ->3.>4
  13. Z ->3.>4
  14. A ->3.>4 Limit -180 180
  15. I ->3.>4
  16. J ->3.>4
  17. K ->3.>4
  18. Q ->3.>4
  19. R ->3.>4
  20. P >40
  21. F >3.>2
  22. T >2
  23. S >4
  24. M >2
  25.  
  26. ModalLetters X Y Z F R A              # List of letters that are modal    
  27.  
  28. ModalGs 0 1 2 3 73 74 76 80 81 82 83 84 85  # List of g codes that are modal    
  29.  
  30. Sequence#s N 0 10 10                  # Char, freq, incr & start          
  31. First#? N                             # Y or N  'Output 1st sequence no.  
  32. Last#? N                              # Y or N  'Output last sequence no. 
  33.  
  34. HCode X                               # X or X U  'Horizontal char.       
  35. VCode Y                               # Y or Y V  'Vertical char.         
  36. Dcode Z                               # Depth char.                       
  37. FeedCode F                            # Feed rate char.                   
  38.  
  39. Comment ( )                           # Begin End comment char.           
  40.  
  41. Spindle 3 4 5                         # Cw, ccw & stop m codes            
  42. Coolant 8 9 7                         # On, Off & Mist m codes            
  43. DComp 41 42 40                        # Left, Right & Cancel m codes      
  44. LComp 43 49                           # On & Off codes                    
  45.  
  46. Feed G1                             # Linear move                       
  47. Rapid G0                            # Rapid positioning word            
  48. Cw G2                               # Circular move clockwise           
  49. Ccw G3                              # Circular move counter clockwise   
  50.  
  51. Inc/Abs G 91 90                       # Inc & Abs char. & values          
  52. Helical? Y
  53.  
  54. CtrCode R                             # I J or R or I J K L               
  55.  
  56. Spaces? Y                             # Y or N  'Spaces between words     
  57.  
  58. Incremental? N                        # Y or N  'Inc or abs output        
  59. CtrIncremental? Y                     # Y or N  'Inc or abs I & J         
  60. ByQuadrants? N                        # Y or N  'Break arcs at quadrants  
  61.  
  62. UppercaseComments? Y                  # Y or N 'Require uppercase comments
  63.  
  64. Drill                                 # Drilling canned/manual cycle      
  65. G81 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  66. end cancel
  67.  
  68. Peck                                  # Pecking canned/manual cycle       
  69. G83 X[H] Y[V] Z[D] Q[VBite] R[Vclear] F[FRate]
  70. end cancel
  71.  
  72. Tap                                   # Tapping canned/manual cycle       
  73. G84 X[H] Y[V] Z[D] R[Vclear] F[Frate] Q[VBite]
  74. end cancel
  75.  
  76. LTap                                  # Left handed tapping cycle         
  77. G74 X[H] Y[V] Z[D] R[Vclear] F[Frate] Q[VBite]
  78. end cancel
  79.  
  80. Ream                                  # Reaming canned/manual cycle       
  81. G85 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  82. end cancel
  83.  
  84. Bore                                  # Boring canned/manual cycle        
  85. G86 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  86. end cancel
  87.  
  88. Back                                  # Back boring canned/manual cycle   
  89. G87 X[H] Y[V] Z[D] R[Vclear] F[FRate]
  90. end cancel
  91.  
  92. Cancel                                # Cancel a canned/manual cycle      
  93. G80
  94. end
  95.  
  96. Index X                               # Index the rotary table            
  97. G0 G28 g91 Z0
  98. G0 G90 G[Work] X[H] Y[V] A[RotAngle]
  99. G43 H[Lcomp] Z[D]
  100. End
  101.  
  102. StartCode                             # Start of the program              
  103. %0
  104. O[Program#]
  105. G90 G80 G40 G17
  106. End
  107.  
  108. 1stToolChange                         # First tool change                 
  109. T[Tool] M6
  110. S[Speed] M[Direct]
  111. G0 G90 G[Work] X[H] Y[V] A[RotAngle]
  112. G43 H[Lcomp] Z[D]
  113. M[Cool]
  114. End
  115.  
  116. Infeed                                # Enable cutter comp                
  117. G[Side] D[DComp] X[H] Y[V] F[FRate]
  118. end
  119.  
  120. Outfeed                               # Disable cutter comp               
  121. G1 G40 X[H] Y[V]
  122. end
  123.  
  124. ToolChange                            # Secondary tool changes            
  125. N[Block] T[Tool] M6
  126. S[Speed] M[Direct]
  127. T[NextTool]
  128. G0 G[Work] X[H] Y[V] A[RotAngle]
  129. G43 Z[D] H[Lcomp]
  130. M[Cool]
  131. End
  132.  
  133. EndCode                               # End of the program                
  134. G28 g91 Z0
  135. G28 Y0 A0
  136. M6 T[Tool1]
  137. M30
  138. %0
  139. End
  140.  
  141.  
  142.